package org.pearl.thread.demo.test001;

import java.util.concurrent.Callable;

/**
 * Created by TD on 2021/4/9
 */
public class MyCallable002 implements Callable<String> {
    @Override
    public String call() throws Exception {
        for (int i = 100; i > 0; i--) {
            System.out.println("MyCallable002...");
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        return "MyCallable002";
    }
}
